package database;

public class Field {
	private String _name;
	private String _dataType;
	private boolean _isPrimary;
	
	public Field() {		
	}
	
	public Field(String name, String dataType){
		_name = name;
		_dataType = dataType;
		_isPrimary = false;
	}
	
	@Override
	public String toString() {
		return _name;
	}
	/**
	 * @return the _dataType
	 */
	public String get_dataType() {
		return _dataType;
	}
	/**
	 * @param _dataType the _dataType to set
	 */
	public void set_dataType(String _dataType) {
		this._dataType = _dataType;
	}
	/**
	 * @return the _name
	 */
	public String get_name() {
		return _name;
	}
	/**
	 * @param _name the _name to set
	 */
	public void set_name(String _name) {
		this._name = _name;
	}

	/**
	 * @return the _isPrimary
	 */
	public boolean is_isPrimary() {
		return _isPrimary;
	}

	/**
	 * @param _isPrimary the _isPrimary to set
	 */
	public void set_isPrimary(boolean _isPrimary) {
		this._isPrimary = _isPrimary;
	}	
}
